/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.ecommerce.erro;

import com.sun.faces.context.ExceptionHandlerFactoryImpl;
import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

/**
 *
 * @author rpateixeira
 */
public class EcomerceExceptionHandlerFacotry extends ExceptionHandlerFactoryImpl{
    private ExceptionHandlerFactory parent;

    public EcomerceExceptionHandlerFacotry(ExceptionHandlerFactory parent) {
        this.parent = parent;
    }

    @Override
    public ExceptionHandler getExceptionHandler() {
        return new EcomerceExceptionHandler(parent.getExceptionHandler());
    }
}
